//
//  BaseViewController.h
//  RootDirectory
//
//  Created by Ryan on 13-2-28.
//  Copyright (c) 2013年 Ryan. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "NYHeaderView.h"

@interface BaseViewController : GAITrackedViewController<NYHeaderViewDelegate>

@property (nonatomic, retain) NYHeaderView *headerView;
@property (nonatomic, retain) UIImageView *backgroundImageView;

- (void)leftItemTapped;
- (void)rightItemTapped;
- (void)extraItemTapped;
/**
	设置基类的NavigationBar的leftItem/rightItem, item的title和image不可同时为nil。
    当title存在的时候用title设置，title不存在的时候用image设置
	@param title leftItem的title
	@param imageName leftItem的imageName
 */
- (void)setLeftNaviItemWithTitle:(NSString *)title imageName:(NSString *)imageName;
- (void)setRightNaviItemWithTitle:(NSString *)title imageName:(NSString *)imageName;

/**
	设置NavigationBar的title
	@param title 需要设置的title
 */
- (void)setNaviTitle:(NSString *)title;

/**
	在view中添加swipe和pan手势
    swipe: 实现手势划出页面
    pan:   覆盖navi contain view的活动显示菜单手势
 */
- (void)addSwipePopGesture;
- (void)addExtraNaviItem;

@end
